package com.woniuxy.user.mapper;

import com.woniuxy.user.dto.OrderTwo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    //查看某用户不同状态的订单
    List<OrderTwo> getUncompletedOrders(@Param("uid") Integer uid , @Param("status") String status);
    //获取某个用户的所有订单
    List<OrderTwo> getAllOrderByUserId(Integer uid);
}
